package com.woniuxy.automotivemanagementsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.automotivemanagementsystem.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {

    /*
    * 修改订单状态方法
    * */
    @Update("update orders set status=#{i} where oid=#{oid}")
    void updateStatus(@Param("oid") Integer oid,@Param("i") int i);
}
